﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BOSS.Domain.Security;

namespace BOSS.Domain.Warehouses
{
    /// <summary>
    /// 入库单
    /// </summary>
    [Serializable]
    public class WarehouseVoucher : DomainEntity<int>
    {
        /// <summary>
        /// 获取 / 设置 入库单号
        /// </summary>
        public virtual string SerialNumber { get; set; }

        /// <summary>
        /// 获取 / 设置 仓库
        /// </summary>
        public virtual Warehouse Warehouse { get; set; }

        /// <summary>
        /// 获取 / 设置 经手人
        /// </summary>
        public virtual Account Stakeholder { get; set; }

        /// <summary>
        /// 获取 / 设置 入库单状态
        /// </summary>
        public virtual WarehouseVoucherState State { get; set; }

        /// <summary>
        /// 获取 / 设置 审核人
        /// </summary>
        public virtual Account Reviewer { get; set; }

        /// <summary>
        /// 获取 / 设置 审核日期
        /// </summary>
        public virtual DateTime? ReviewDate { get; set; }

        /// <summary>
        /// 获取 / 设置 审核备注
        /// </summary>
        public virtual string ReviewRemarks { get; set; }

        /// <summary>
        /// 获取 / 设置 入库单项
        /// </summary>
        public virtual IList<WarehouseVoucherItem> WarehouseVoucherItems { get; set; }
    }
}
